dimensions=(200,50)
for dimension in dimensions:
    print (dimension) #遍历元组

    #修改大小写
name = "Ada lovelace"
print(name.upper()) #全部大写
print(name.lower()) #全部小写
print(name.title()) #首字母大写

#用format插入变量的值 f"...{插入的变量}"
first_name="ada"
last_name="lovelace"
full_name = f"{first_name}{last_name}"
print(f"Hello, {full_name.title()}!")

#添加空白
#制表符 \t
print("\tPython")
#换行符 \n
print("Languages:\nPython\nJava")
#删除空白 n.rstrip()右边 n.lstrip()左边 n.lstrip()两边
language='python '
print(language.rstrip()) #暂时删除
#永久删除需要关联变量
language='python '
language=language.rstrip()
print(language)
#全部大写 视变量为常量